package com.user.controller;

import com.common.domain.entity.ResponseResult;
import com.common.service.ExchangeLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @Date 2023/10/2 18:01
 **/
@RestController
public class ExchangeController {
    @Autowired
    private ExchangeLogService exchangeLogService;

    @GetMapping("getUserExchangeLog")
    public ResponseResult getUserExchangeLog(int pageNum, int pageSize){
        return exchangeLogService.getUserExchangeLog( pageNum,  pageSize);
    }

    @GetMapping("getGoodsInfo")
    public ResponseResult getGoodsInfo(){
        return exchangeLogService.getGoodsInfo();
    }
}
